package com.company;

public class classwork2 {
    public static void main(String[] args) {

        classworkTread2 t1=new classworkTread2(true);
        classworkTread2 t2=new classworkTread2(false);
        t1.setName("乌龟");
        t2.setName("兔子");
        t1.start();
        t2.start();

    }
}
